$(function () {
    var fn = ABUS.Fn;
    var param = window.__param__;

    $("#order_info").renderTemp(param);
    fn.get({
        url: "/common/order/childOrders",
        data: param,
        success: function (data) {
            if (data.result !== 1) return false;

            $("#progress_list_1").renderTemp(data);
            $(".moving_line_2").each(function () {
                $(this).height($(this).parents("li").height() - $(this).prev('div').height())
            });
            new IScroll('#progress_list_1', {mouseWheel: true});
            $('#progress_list_1').find("ul li:has(.circle_1):first").nextAll('li')
                .find(".circle_1").toggleClass("circle_1 circle_4").find("span").toggleClass("colorfff colora29").end().end()
                .find(".progress_status span").toggleClass("color17d colord8");
            data = data.data;

            $(".addBtn:first").on("touchend", function () {
                __param__.stepIndex = data.length;
                fn.page_goto({
                    url: "./zuzhang_shouye_customize.html",
                    data:__param__
                })
            })
        }
    });

    $('.start_list').on("touchend", function () {
        fn.page_goto({
            url: "./zuzhang_shouye_carPhoto.html",
            data:__param__
        })
    })
    document.addEventListener('touchmove', function (e) {
        e.preventDefault();
    }, {passive: false});

});